<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Techdevelopers</title>
</head>
<body bgcolor="#FF6600">
<jsp:include page="StartSeite.jsp" />
<h4>Register</h4>
<u>Bitte fuelle die komplette liste aus um dich zu registrieren!</u><br><br>
<form action="" method="post">
<table>
<tr>
<td>
E-Mail:  
<td>
<input type="text" name= "E-Mail" sice = "30"></tr>
<tr>
<td>Name: 
<td><input type="text" name = "Name" sice = "30">
</tr>
<tr>
<td>Passwort:
<td><input type="password" name = "passwort" sice = "30">
</tr>
<tr>
<td>Strasse:
<td><input type="text" name = "strasse" sice = "30">
</tr>
<tr>
<td>Ort:
<td><input type="text" name = "ort" sice = "30">
</tr>
<tr>
<td>PLZ:
<td><input type="text" name = "plz" sice = "30">
</tr>
<tr>
<td>
<td>
<input type="submit" ></tr>
</table>
<%
	
	 String u = (String)request.getAttribute("key");
	 String e = (String)request.getAttribute("keye");
	 String p = (String)request.getAttribute("keyp");
	 String o = (String)request.getAttribute("keyo");
	 String s = (String)request.getAttribute("keys");
	 String plz = (String)request.getAttribute("keyplz");
	 Integer gibtesschon = (Integer)request.getAttribute("keygib");
	 String obj = (String)request.getAttribute("keyobj");
	 
if (e != null ){
	if (e.length() == 0 || u.length() == 0 || p.length() == 0 || s.length() == 0 || o.length() == 0 || plz.length() == 0){
%><br>
<font color="#FF0000">ERROR: BITTE GIB ALLE DATEN AN</font><br>

<br> 

<br>


<%}else if (gibtesschon==0){ %>
<font color="#FF0000">ERROR: E-Mail gibt es schon, versuchs nochmal</font><br>
<%}else { %>
<h1><font color="blue">Du hast dich erfolgreich registriert</font></h1><br>
bitte melde dich  <a href="AnmeldenServlet">hier an.</a> 
<%=obj %>
<%
}}
%>

<br><br><br><br><br><br><br><br><br><br><br><br>

<jsp:include page="fusszeile.jsp" />
</form>
</body>
</html>